﻿<%@ Page Language="C#" MasterPageFile="~/Master/Master.Master" AutoEventWireup="true"
    CodeBehind="home-cart.aspx.cs" Inherits="BONSAI.UI.Pages.HomeCart" Title="..:HoaBonSai:.. Giỏ hàng" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
        jQuery(document).ready(function() {
            var obj = document.getElementById("menu_top");
            var objli = obj.getElementsByTagName("li");
            for (i = 0; i < objli.length; i++) {
                objli.className = '';
            }
            document.getElementById('product_li').className = 'current';
        }); 
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content-menu-top">
        Giỏ hàng</div>
    <div class="content-menu-centter">
        <div class="cart-gtoup1">
            <table style="width: 100%" class="table-bg">
                <tr style="background: #CCFFFF; text-align: center; font-weight: bold;">
                    <td>
                        Stt
                    </td>
                    <td>
                        Tên sản phẩm
                    </td>
                    <td>
                        Số lượng
                    </td>
                    <td>
                        Đơn giá
                    </td>
                    <td>
                        Thành tiền
                    </td>
                </tr>
                <asp:Repeater ID="grdCart" runat="server" OnItemCommand="grdCart_ItemCommand">
                    <ItemTemplate>
                        <tr style="padding-top: 5px;">
                            <td style="vertical-align: top; color: #de07b3; text-align: center;">
                                <%=(Stt++ )%>
                            </td>
                            <td style="padding-left: 5px;">
                                <div class="colorblue">
                                    <%#Eval("gProduct_name") %></div>
                                <div class="colorbrown fontsize12">
                                    Mode :
                                    <%#Eval("gProduct_id")%></div>
                                <div>
                                    <asp:Image ID="Image1" runat="server" ImageUrl='<%#Eval("gImage") %>' class="maxsize-cart" />
                                </div>
                            </td>
                            <td style="text-align: center; width: 120px;">
                                <div class="height0">
                                    <asp:TextBox ID="txtQuantity" Style="width: 80px; text-align: center;" runat="server"
                                        size="4" Text='<%# Eval("gQuantity") %>'></asp:TextBox>
                                </div>
                                <div class="height0" style="width: 120px; padding-top: 10px; margin-right: 10px;">
                                    <asp:Button ID="Button1" runat="server" class="cart-btn-update" Text="Cập nhật" CommandArgument='<%#Eval("gProduct_id") %>'
                                        CommandName="updateCart" />
                                </div>
                                <div class="height0" style="width: 120px; padding-top: 10px; margin-right: 10px;">
                                    <asp:Button ID="Button2" runat="server" class="cart-btn-delete" Text="Xóa" CommandArgument='<%#Eval("gProduct_id") %>'
                                        CommandName="deleteCart" />
                                </div>
                            </td>
                            <td style="text-align: right; vertical-align: top;">
                                <span style="color: #de07b3; font-size: 16px;">
                                    <%#String.Format("{0:#,###.##}",Eval("gPrice"))%></span><span style="font-size: 12px;
                                        padding: 0 10px;">VNĐ</span>
                            </td>
                            <td style="text-align: right; vertical-align: top;">
                                <span style="color: #de07b3; font-size: 16px;">
                                    <%#String.Format("{0:#,###.##}",Eval("gSubTotal"))%></span><span style="font-size: 12px;
                                        padding: 0 10px;">VNĐ</span>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                <!--<tr style="padding-top:5px;">
						<td style="vertical-align:top; color:#de07b3; text-align:center;">1</td>
						<td style="padding-left:5px;">
							<div class="colorblue">Hoa bình tặng ngày lễ tình nhân</div>
							<div class="colorbrown fontsize12">Mode : 01</div>
							<div><img src="../Photos/product/3.jpg" class="maxsize-cart" alt=""/></div>
						</td>
						<td style="text-align:center; width:120px;"> 
							<div class="height0"><input type="text" style="width:80px;text-align:center;" /></div>
							<div class="height0" style="width:120px; padding-top:10px; margin-right:10px;"><input type="button" class="cart-btn-update" value="Cập nhựt" /></div>
							<div class="height0" style="width:120px;padding-top:10px; margin-right:10px;"><input type="button" class="cart-btn-delete" value="Xóa" /></div>
						</td>
						<td style="text-align:right; vertical-align:top;"><span style="color:#de07b3;font-size:16px;">800.00</span><span style="font-size:12px; padding:0 10px;">VNĐ</span></td>
						<td style="text-align:right;vertical-align:top;"><span style="color:#de07b3;font-size:16px;">800.00</span><span style="font-size:12px; padding:0 10px;">VNĐ</span></td>
					</tr>-->
                <tr>
                    <td colspan="4" style="text-align: right;">
                        Tổng tiền
                    </td>
                    <td style="text-align: right;">
                        <span style="color: #de07b3; font-size: 16px;">
                            <asp:Label ID="lblTotal" runat="server" Text=""></asp:Label>
                        </span><span style="font-size: 12px; padding: 0 10px;">VNĐ</span>
                    </td>
                </tr>
            </table>
        </div>
        <!--2-->
        <!--<input class="cart-btn-next" id="next2" type="button" value="tiếp tục" /> -->
        <div class="height0">
        </div>
        <div class="cart-gtoup2" id="showInfo">
            <div class="cart-send-title">
                Thông tin khách hàng</div>
            <hr class="hr-list" />
            <div class="cart-send-left">
                Số hóa đơn :
            </div>
            <div class="cart-send-right">
                <asp:TextBox ID="txtOrderId" runat="server" CssClass="textbox1"></asp:TextBox>
            </div>
            <div class="cart-send-left">
                Họ tên :
            </div>
            <div class="cart-send-right">
                <asp:TextBox ID="txtfullname" runat="server" CssClass="textbox2"></asp:TextBox>
            </div>
            <div class="cart-send-left">
                Địa chỉ giao hàng :
            </div>
            <div class="cart-send-right">
                <asp:TextBox ID="txtAddress" runat="server" CssClass="textbox2"></asp:TextBox>
            </div>
            <div class="cart-send-left">
                Số điện thoại liên lạc :
            </div>
            <asp:TextBox ID="txtPhone" runat="server" CssClass="textbox2"></asp:TextBox>
            <div class="cart-send-right">
            </div>
            <div class="cart-send-left">
                Ghi chú thêm :
            </div>
            <div class="cart-send-right">
                <asp:TextBox ID="txtContent" runat="server" CssClass="textear1" TextMode="MultiLine"></asp:TextBox>
            </div>
            <div class="height6">
            </div>
            <asp:Button ID="btnsendmail" runat="server" Text="kết thúc" CssClass="cart-btn-next"
                OnClick="btnsendmail_Click" />
            <input class="cart-btn-canel" type="submit" value="Hủy bỏ" />
            <div class="height6">
            </div>
        </div>
    </div>
    <div class="content-menu-bottom">
    </div>
</asp:Content>
